package org.putrpctorest.service.impl.spring;

import org.springframework.beans.factory.FactoryBean;

public class ServiceClassFactoryBean implements FactoryBean<Class<?>> {
	
	private Class<?> serviceClass;
	
	
	public ServiceClassFactoryBean(Class<?> serviceClass) {
		this.serviceClass = serviceClass;
	}

	@Override
	public Class<?> getObject() throws Exception {
		return serviceClass;
	}

	@Override
	public Class<?> getObjectType() {
		return Class.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
	
}
